FROM python:3.9

WORKDIR ./chatgpt-on-wechat-master

ADD . .
RUN pip3 install -r requirements.txt --index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 如果部署失敗，那麽先拉鏡像
# sudo docker pull python:3.9

# RUN pip3 install -r requirements.txt
# RUN pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

CMD ["python3", "./app.py"]